﻿using Furion.FriendlyException;
using System;

namespace YFurion.Exceptions
{
    /// <summary>
    /// 异常处理接口
    /// </summary>
    public interface IExceptionHandler 
    {
        /// <summary>
        /// 处理异常
        /// </summary>
        /// <param name="exception">异常对象</param>
        /// <param name="infoName">信息名</param>
        /// <param name="feAction">友好异常处理委托</param>
        void OnHandleException(Exception exception, string infoName, Action<AppFriendlyException> feAction = null);
    }
}
